package com.techwells.learningkites.model;

import com.techwells.learningkites.base.KitesViewModel;
import com.techwells.learningkites.networkservice.KitesServiceMediator;
import com.techwells.learningkites.networkservice.model.Favorite;
import com.techwells.learningkites.networkservice.model.Page;
import com.techwells.taco.tasktool.TaskToken;

public class MyFavoriteViewModel extends KitesViewModel {
	
	public Favorite favorite;
	public int returnCode;

	@Override
	public void paddingResult(TaskToken token) {
		// TODO Auto-generated method stub
		super.paddingResult(token);
		
		String method = token.method;
		if (method.equals(KitesServiceMediator.SERVICE_GET_FAVORITE_VIDEOS)) {
			favorite = (Favorite) response.getResponse();
		}else if (method.equals(KitesServiceMediator.SERVICE_DELETE_FAVORITE_VIDEO)) {
			returnCode = response.getReturnCode();
		}
	}
	
	
	
	
	

}
